package com.bootdo.system.dao;

import com.bootdo.system.domain.FrontlogDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
@Mapper
public interface FrontlogDao {

	FrontlogDO get(Long id);
	
	List<FrontlogDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(FrontlogDO frontlog);
	
	int update(FrontlogDO frontlog);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<String> getUserDates(@Param("userId") Long userId);

	List<FrontlogDO> getDayList(@Param("userid") Long userid,@Param("date") String date);

	List<FrontlogDO> getBeizhu(@Param("adminid") int adminid,@Param("transactId") Long d);

    void deleteByBeizhu(@Param("beizhu") String beizhu);

	FrontlogDO getByBeizhu(@Param("beizhu") String beizhu);
}
